// src/composables/index.ts

import type {TDYGuess} from '../../types/components'
import { ref } from 'vue'

export const useGuessList = () => {
  
  const guessRef = ref<TDYGuess>()

  // 滚动触底事件
  const onScrolltolower = () => {
    guessRef.value?.getMore()
  }

  // 返回 ref 和事件处理函数
  return { guessRef, onScrolltolower }
}